package com.nit.lab.dto.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class UserDTO {
    private Long key;
    private Long userId;
    private String loginName;
    private String loginPwd;
    private String userName;
    private Long roleId;
    private Long deptId;
    private Long dataDeptId;
    private String deptName;
    private Long deptFather;
    private Long deptType;
    private String userImage;
    private String userInfo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;

    public UserDTO() {
    }

    public UserDTO(Long key, Long userId, String loginName, String loginPwd, String userName, Long roleId, Long deptId, Long dataDeptId, String deptName, Long deptFather, Long deptType, String userImage, String userInfo, Date gmtCreate) {
        this.key = key;
        this.userId = userId;
        this.loginName = loginName;
        this.loginPwd = loginPwd;
        this.userName = userName;
        this.roleId = roleId;
        this.deptId = deptId;
        this.dataDeptId = dataDeptId;
        this.deptName = deptName;
        this.deptFather = deptFather;
        this.deptType = deptType;
        this.userImage = userImage;
        this.userInfo = userInfo;
        this.gmtCreate = gmtCreate;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDataDeptId() {
        return dataDeptId;
    }

    public void setDataDeptId(Long dataDeptId) {
        this.dataDeptId = dataDeptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Long getDeptFather() {
        return deptFather;
    }

    public void setDeptFather(Long deptFather) {
        this.deptFather = deptFather;
    }

    public Long getDeptType() {
        return deptType;
    }

    public void setDeptType(Long deptType) {
        this.deptType = deptType;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(String userInfo) {
        this.userInfo = userInfo;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

}
